#include <59header.h>

/* Useage: ./02_getcwd  */
int main(void){
    //char path[1024] = {0};
    //char *ret = getcwd(path, sizeof(path));
    //ERROR_CHECK(ret, NULL, "getcwd");
    //printf("pwd = %s\n", path);
    
    char *path = getcwd(NULL, 0);
    printf("pwd = %s\n", path);
    free(path);     // 不要忘记free，p指向的内存块是getcwd函数自己在堆上申请的
    return 0;
}

